<?php

class My_Form_LangForm extends Zend_Form
{

    public function init()
    {
        $select = new Zend_Form_Element_Select("lang");
        $select->addMultiOption("en", "Anglais");
        $select->addMultiOption("fr", "Français");
        $select->addMultiOption("es", "Espagnol");
        $select->addMultiOption("de", "Allemand");
        $select->setValue($_SESSION['lang']);
        //$select->setLabel("Choisir la config");
        $select->setAttrib('onchange', 'submit();');
        $this->setAction("/game/index/translate");

        $select->removeDecorator("DtDdWrapper");
        $this->removeDecorator("DtDdWrapper");
        $this->addElements(array($select));
    }

    

}

